<?php
/* @var $this LoanRatingsController */
/* @var $model LoanRatings */
/* @var $form CActiveForm */

?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'loan-ratings-form',
	'enableAjaxValidation'=>false,
)); ?>
    <table width="100%" cellspacing="1" cellpadding="4" border="0">
        <tbody>
        <tr class="td_title">
            <td colspan="2">
                <p class="note">Fields with <span class="required">*</span> are required.</p>
            </td>
        </tr>

        <tr bgcolor="#FFFFFF">
            <td width="15%" class="td_th"><?php echo $form->labelEx($model,'previous_loan'); ?></td>
            <td>
                <?php echo $form->textField($model,'previous_loan'); ?>
                <?php echo $form->error($model,'previous_loan'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="15%" class="td_th"><?php echo $form->labelEx($model,'loan_rating_id'); ?></td>
            <td>
                <?php echo CHtml::dropdownList('LoanRatingTerms[loan_rating_id]', false, $data); ?>
                <?php echo $form->error($model,'loan_rating_id'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td width="15%" class="td_th"><?php echo $form->labelEx($model,'loan_term_value'); ?></td>
            <td>
                <?php echo CHtml::dropdownList('LoanRatingTerms[loan_term_value]', false, $data_term_value); ?>
                <?php echo $form->error($model,'loan_term_value'); ?>
            </td>

        </tr>


        <tr bgcolor="#FFFFFF">
            <td class="td_th">
                <?php echo $form->labelEx($model,'min_borrower_rate'); ?></td>
            <td>
                <?php echo $form->textField($model,'min_borrower_rate'); ?>
                <?php echo $form->error($model,'min_borrower_rate'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'max_borrower_rate'); ?></td>
            <td>
                <?php echo $form->textField($model,'max_borrower_rate'); ?>
                <?php echo $form->error($model,'max_borrower_rate'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'min_borrower_apr'); ?></td>
            <td>
                <?php echo $form->textField($model,'min_borrower_apr'); ?>
                <?php echo $form->error($model,'min_borrower_apr'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'max_borrower_apr'); ?></td>
            <td>
                <?php echo $form->textField($model,'max_borrower_apr'); ?>
                <?php echo $form->error($model,'max_borrower_apr'); ?>
            </td>

        </tr>
        <tr bgcolor="#FFFFFF">
            <td class="td_th"><?php echo $form->labelEx($model,'closing_fee'); ?></td>
            <td>
                <?php echo $form->textField($model,'closing_fee'); ?>
                <?php echo $form->error($model,'closing_fee'); ?>
            </td>

        </tr>

        <tr bgcolor="#FFFFFF">
            <td colspan="2" class="submit"><?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?></td>
        </tr>
        </tbody>
    </table>
    <br>

<?php $this->endWidget(); ?>

</div><!-- form -->